package com.qfedu.springmvc02.controller;

import com.qfedu.springmvc02.entity.FastUser;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author zhang
 * @Title: commonValidateAdd
 * @date : 2022/5/4 21:23
 */
@RestController
@RequestMapping("/fast")
public class FastController {

    @RequestMapping("/test1")
    public FastUser test1(){
        FastUser fastUser = new FastUser();
        fastUser.setUsername("小米");
        fastUser.setBirthday(new Date());
        fastUser.setMarryDay(new Date());
        fastUser.setSalary(888.888D);
        return fastUser;
    }
}
